<template>
  <div></div>
</template>

<script>
  export default{
    data(){
      return{}
    },
    beforeRouteEnter(to,from,next) {
      let menuKey = (from.fullPath).split("=");
      let _menuKey = menuKey[1];
      next(vm => {
        if(_menuKey!=undefined){
          vm.$router.replace({path:from.path,query:{menuKey:_menuKey}});
        }else{
          vm.$router.replace(from.path);
        }
      })
    }
  }
</script>

<style>
</style>
